﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using Microsoft.Practices.Composite.Modularity;
using Microsoft.Practices.Composite.UnityExtensions;

namespace WPF60
{
    class Bootstrapper : UnityBootstrapper
    {

        /// <summary>
        /// create a shell the Unity Bootstrapper can add a region manager service to
        /// </summary>
        /// <returns></returns>
        protected override DependencyObject CreateShell()
        {
            var shell = new Shell();
            shell.Show();
            return shell;
        }

        protected override IModuleCatalog GetModuleCatalog()
        {
            var catalog = new ModuleCatalog()
                .AddModule(typeof(DemoModule.DemoModule));

            return catalog;
        }

    }
}
